package com.cskaoyan.javase.oop2._1extends._7initialization._0introduction;
/**
 * 
 * @since 14:39
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo2 extends Father{
    static {
        System.out.println("demo2");
    }

    public static void main(String[] args) {

    }
}
class Grandfather {
    static {
        System.out.println("grandfather");
    }
}
class Father extends Grandfather{
    static {
        System.out.println("father");
    }
}
class Son extends Father{
    static {
        System.out.println("son");
    }
}